package com.bytz.modules.cms.product.controller;

import com.bytz.common.api.vo.Result;
import com.bytz.modules.cms.productLine.entity.ProductLine;
import com.bytz.modules.cms.productLine.service.IProductLineService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(tags = "产品线")
@RequestMapping("/productLine")
public class MallProductLineController {

    @Autowired
    private IProductLineService productLineService;

    @ApiOperation(value = "查询全部", notes = "查询全部")
    @RequestMapping(value = "/listAll", method = RequestMethod.GET)
    public Result<List<ProductLine>> page() {
        return Result.ok(productLineService.list());
    }

}
